using System.ComponentModel;

namespace jSLCore.Client.Presentation.BaseControl
{
    public class BackgroundWorkerParams
    {
        public BackgroundWorkerParams(object initialData, MutliWorkEventHandler doWorkEventHandler, RunWorkerCompletedEventHandler runWorkerCompletedEventHandler, object splashContent, DataControl dataControl)
        {
            InitialData = initialData;
            DoWorkEventHandler = doWorkEventHandler;
            RunWorkerCompletedEventHandler = runWorkerCompletedEventHandler;
            _splashContent = splashContent;
            _dataControl = dataControl;
        }

        public object InitialData;
        public MutliWorkEventHandler DoWorkEventHandler;
        public RunWorkerCompletedEventHandler RunWorkerCompletedEventHandler;
        private readonly object _splashContent;
        private readonly DataControl _dataControl;

        public DataControl DataControl
        {
            get { return _dataControl; }
        }

        public object SplashContent
        {
            get { return _splashContent; }
        }
    }
}